home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2007 September / PCWSEP07.iso / Software / Linux / Linux Mint 3.0 Light / LinuxMint-3.0-Light.iso / casper / filesystem.squashfs / var / lib / dpkg / info / ca-certificates.postrm < prev    next >
Encoding:
Text File  |  2006-11-08  |  1.5 KB  |  60 lines

  1. #! /bin/sh
  2. # postrm script for ca-certificates
  3. #
  4. # see: dh_installdeb(1)
  5.  
  6. set -e
  7.  
  8. # summary of how this script can be called:
  9. #        * <postrm> `remove'
  10. #        * <postrm> `purge'
  11. #        * <old-postrm> `upgrade' <new-version>
  12. #        * <new-postrm> `failed-upgrade' <old-version>
  13. #        * <new-postrm> `abort-install'
  14. #        * <new-postrm> `abort-install' <old-version>
  15. #        * <new-postrm> `abort-upgrade' <old-version>
  16. #        * <disappearer's-postrm> `disappear' <r>overwrit>r> <new-version>
  17. # for details, see /usr/share/doc/packaging-manual/
  18.  
  19. case "$1" in
  20.     remove)
  21.        cd /etc/ssl/certs
  22.        echo -n "Removing hash symlinks in /etc/ssl/certs ..."
  23.        find . -type l -print | while read h
  24.        do
  25.      test -f $h || rm -f $h
  26.        done
  27.        echo done.
  28.        ;;
  29.  
  30.     purge)
  31.        rm -f /etc/ssl/certs/ca-certificates.crt*
  32.        rm -f /etc/ca-certificates.conf*
  33.        if test -e /usr/share/debconf/confmodule; then
  34.          . /usr/share/debconf/confmodule
  35.          db_purge
  36.        fi
  37.        ;;
  38.  
  39.     upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
  40.         ;;
  41.  
  42.     *)
  43.         echo "postrm called with unknown argument \`$1'" >&2
  44.         exit 1
  45.  
  46. esac
  47.  
  48. # dh_installdeb will replace this with shell code automatically
  49. # generated by other debhelper scripts.
  50.  
  51. # Automatically added by dh_installdebconf
  52. if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ]; then
  53.     . /usr/share/debconf/confmodule
  54.     db_purge
  55. fi
  56. # End automatically added section
  57.  
  58.  
  59.  
  60.